home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cuj9204 / 1004034a < prev    next >
Text File  |  1992-06-02  |  683b  |  34 lines

  1. /* Listing 1 */
  2. switch ( argv[1][0] )
  3.     {
  4.     case 'a':
  5.     case 'A':
  6.         status = add_data_to_db( argv[2] );
  7.         break;
  8.     case 'd':
  9.     case 'D':
  10.         status = del_data_from_db( argv[2] );
  11.         break;
  12.     case 'g':
  13.     case 'G':
  14.         status = get_data_from_db( argv[2], argv[3] );
  15.         break;
  16.     case 'l';
  17.     case 'L';
  18.         status = list_keys_in_db();
  19.         break;
  20.     case 'r';
  21.     case 'R';
  22.         status = replace_data_in_db( argv[2], argv[3] );
  23.         break;
  24.     case 'v':
  25.     case 'V':
  26.         status = vrfy_data_in_db( argv[2], argv[3] );
  27.         break;
  28.     default:
  29.         status = FAIL;
  30.         break;
  31.     }   /* switch ( argv[1][0] ) */
  32.  
  33.  
  34.